namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_CREW")]
    public partial class PUB_CREW
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PUB_CREW()
        {
            PL_RL_DETAILS = new HashSet<PL_RL_DETAILS>();
            PLAN_PRODUCTION_DEMAND = new HashSet<PLAN_PRODUCTION_DEMAND>();
            PLAN_PURCHASE_DEMAND = new HashSet<PLAN_PURCHASE_DEMAND>();
        }

        [Key]
        [StringLength(40)]
        public string CREW_ID { get; set; }

        [Required]
        [StringLength(50)]
        public string CREW_NAME { get; set; }

        public decimal? FDBMH { get; set; }

        public decimal? GDBMH { get; set; }

        public bool? IS_HEATING { get; set; }

        public decimal? LOAD_RATED { get; set; }

        public decimal? LOAD_UPPER { get; set; }

        public decimal? LOAD_LOWER { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PL_RL_DETAILS> PL_RL_DETAILS { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PLAN_PRODUCTION_DEMAND> PLAN_PRODUCTION_DEMAND { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PLAN_PURCHASE_DEMAND> PLAN_PURCHASE_DEMAND { get; set; }
    }
}
